package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.TravelCommend;
import cn.wolfcode.luowowo.article.query.TravelCommendQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * Created by admin on 2019/8/12.
 */
public interface ITravelCommendService {
    /**
     * 查询游记推荐列表
     *
     * @param qo
     * @return
     */
    PageInfo<TravelCommend> query(TravelCommendQuery qo);

    /**
     * 保存或更新
     *
     * @param travelCommend
     */
    void saveOrUpdate(TravelCommend travelCommend);

    /**
     * 查询推荐的前五篇游记
     *
     * @return
     */
    List<TravelCommend> selectCommendTop5();

}
